﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BBSIndex.aspx.cs" Inherits="AncestralHallBBS_BBSIndex" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Language" content="zh-cn" />
    <title>陆氏宗祠的论坛</title>
    <link  rel="stylesheet" href="1/css.css" type="text/css" />
</head>
<body class="BJ">
<form id="form1" runat="server">
<div align="center">
<div align="center">
<table cellpadding="0" cellspacing="0" width="97%" height="26" border="1" bordercolor="#DFDFDF">
	<tr>
		<td align="left" height="24" class="BG"><span style="font-weight: 400; font-size: 12px">>>欢迎您&nbsp;&nbsp;<%=crruentUserName %><a href="sousuo.asp?ltbh=10099622"><font color="#000000"><span style="text-decoration: none"></span></font></a></span><span style="font-weight: 400; font-size: 12px">| 
	      <a href="BBSIndex.aspx?AncestralHallId=<%=this.AncestralHallId %>&accessType=0"><font color="#000000">
	    <span style="text-decoration: none">返回论坛首页</span></font></a>| 
	      <a href="../Default.aspx"><font color="#000000">
	    <span style="text-decoration: none">返回网站首页</span></font></a></span></td>
	</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" width="97%">
	<tr>
		<td height="143">
		<%=ancestralHallBBSModel.BBSTop%>
	    </td>
	</tr>
</table>
</div>
<div align="center">
	<table cellpadding="0" cellspacing="0" width="97%" style="border: 1px solid #DFDFDF" height="141">

		<tr>
			<td width="122" height="115" style="border: 1px solid #DFDFDF">
			<p align="center">
			<span style="font-size: 12px">
			<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="120" height="111">
				<param name="movie" value="swf/clock129.swf">
				<param name="quality" value="High">
				<embed src="clock129.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="120" height="111"></object>
			</span>			</td>
		  <td width="822" style="border: 1px solid #DFDFDF"><table width="822" cellpadding="0" cellspacing="0"  height="139">
            <tr>
              <td  class="BG" height="27"><strong><span style="font-size: 12px">论坛公告</span></strong></td>
            </tr>
            <tr>
              <td width="220" height="112"><div align="left">
                  <table cellpadding="0" cellspacing="0" width="98%" height="108">
                    <tr>
                      <td width="184" height="108" valign="top" align="left">
                        <%=ancestralHallBBSModel.BBSAnnouce%>
                      </td>
                    </tr>
                  </table>
              </div></td>
            </tr>
          </table></td>
		</tr>

		<tr>
		  <td height="24" colspan="3" style="border: 1px solid #DFDFDF">
	主题总数:<%=msnCount%>&nbsp;&nbsp;&nbsp;&nbsp;回帖总数:<%=replyMsnCount%>&nbsp;&nbsp;&nbsp;&nbsp;今日贴数:<%=todayMsnCount%>  
		  </span> </td>
		</tr>
	</table>
</div>
<asp:Panel ID="palIndex" runat="server" Visible="true" >
    <div align="center">
        <table cellpadding="0" cellspacing="0" width="97%" style="border: 1px solid #DFDFDF">
            <asp:Repeater ID="rptAncestralHallItems" runat="server" 
                onitemdatabound="rptAncestralHallItems_ItemDataBound" >
                <ItemTemplate>
                    <asp:HiddenField ID="hldAncestralHallItemId" runat="server" Value='<%#Eval("Id") %>' />
                    <tr>
		                    <td align="left" class="BG" height="26" style="border: 1px solid #DFDFDF;" colspan="3">
    
                            <span style="font-weight: 400">『<a href="BBSIndex.aspx?AncestralHallId=<%=this.AncestralHallId %>&AncestralHallItemId=<%#Eval("Id") %>&accessType=1"><font color=#000000><%#Eval("ItemName") %></font></a>』</span></td>
	                    </tr>
	                    <tr>
		                    <td align="left" height="69" width="322">

                            &nbsp;<span style="font-size: 12px"><%#Eval("ItemName") %></span></td>
                    		
                    		
	                        <td height="69" width="184">
	                                  &nbsp;<img border="0" src="Images/bbs.gif" width="68" height="48"></td>
                                		
		                                <%--<td height="69" width="237" style="line-height:20px;">
                                        <span style="font-size: 12px">主题:
                                <a href="">
                                <span style="text-decoration:none">
                                    <asp:Label ID="lblContent" runat="server" />
                                </span></a><br>
		                                作者: <a href="zzck.asp?zz="><span style="text-decoration:none"><asp:Label ID="lblAuthor" runat="server" /></span></a><br>
	                                  时间: <asp:Label ID="lblPublishTime" runat="server" /></span>--%>
	                      </td>
	                    </tr>
                    	
                    	
	                    <tr>
		                    <td height="21" align="right" style="border: 1px solid #DFDFDF" colspan="3" background="../img/B_bg.gif">

                            <span style="font-size: 12px">今日: <font color="#FF0000"><asp:Label ID="lblTodayMsgCount" runat="server" />
	                      </font>&nbsp;&nbsp;&nbsp;帖子:<asp:Label ID="lblMsgCount" runat="server" /> &nbsp;&nbsp;&nbsp;回帖:<asp:Label ID="lblReplyMsgCount" runat="server" /> </span></td>
	                    </tr>       
                </ItemTemplate>
            </asp:Repeater>
	        </table>
        </div>
</asp:Panel>

<asp:Panel ID="palItem" runat="server" Visible="true" >
    <div align="center">
        <table cellpadding="0" cellspacing="0" width="97%" height="26" bordercolor="#DFDFDF" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
	        <tr>
		        <td align="left"  class="BG" height="24"><span style="font-size: 12px">&nbsp;<span style="font-weight: 400"><img src="Images/plus.gif">
				        <a href="index.asp?ltbh=10099622"><%=ancestralHallModel.Name %></a> → <span id="temp15">
				        <%=ancestralHallItemsModel.ItemName%></span></span></span></td>
	        </tr>
        </table>
    </div>



    <div align="center">
        <table cellpadding="0" cellspacing="0" width="97%" height="19">
	        <tr>
		        <td height="19" align="left"><a href="PublishBBS.aspx?AncestralHallId=<%=this.AncestralHallId %>&AncestralHallItemId=<%=this.AncestralHallItemId%>"><img style="border:0px;" src="1/zi_postnew.gif" /></a></td>
	        </tr>
        </table>
    </div>


    <div align="center">

        <table cellpadding="0" cellspacing="0" width="97%" height="53" style="border: 1px solid #DFDFDF">
            <tr>
		        <td  class="BG" height="26" width="36" align="center">
	            <span style="font-size: 12px">状态</span></td>
		        <td class="BG" height="26" align="center" width="295">
	            <span style="font-size: 12px">标题</span></td>
		        <td class="BG" height="26" align="center" width="146">
	            <span style="font-size: 12px">作者</span></td>
		        <td class="BG" height="26" align="center" width="77">
	            <span style="font-size: 12px">回复</span></td>
		        <td class="BG" height="26" align="center" width="76">
	            <span style="font-size: 12px">点击</span></td>
		        <td class="BG" height="26" align="center">
	            <span style="font-size: 12px">最后更新</span></td>
	        </tr>
            <asp:Repeater ID="rptBBSMsg" runat="server" 
                onitemdatabound="rptBBSMsg_ItemDataBound" >
                <ItemTemplate>
                    <asp:HiddenField ID="hldId" runat="server" Value='<%#Eval("Id") %>' />
                    <tr>
		            <td height="25" width="34" style="border: 1px solid #DFDFDF">
	                <p align="center">
		            <img border="0" src="Images/folder.gif" width="15" height="15">
		            </td>
		            <td height="25" width="293" style="border: 1px solid #DFDFDF" align="center">
	                <span style="font-size: 12px"><a href="BBSIndex.aspx?AncestralHallId=<%=this.AncestralHallId %>&AncestralHallItemId=<%=this.AncestralHallItemId%>&accessType=2&BBSMsgId=<%#Eval("Id") %>"><span style="text-decoration: none"><%#Eval("Title") %></span></a></td>
		            <td height="25" width="146" style="border: 1px solid #DFDFDF" align="center">
	                <span style="font-size: 12px"><%#Eval("Content") %></span></td>
		            <td height="25" width="77" style="border: 1px solid #DFDFDF" align="center">
	                <span style="font-size: 12px"><asp:Label ID="lblReplyCount" runat="server" /></span></td>
		            <td height="25" width="76" style="border: 1px solid #DFDFDF" align="center">
	                <span style="font-size: 12px"><%#Eval("Hits") %></span></td>
		            <td height="25" style="border: 1px solid #DFDFDF" align="center">
	                <span style="font-size: 12px"><%#Eval("PublishTime") %></span>&nbsp;&nbsp; </td>
	            </tr>
                </ItemTemplate>
            </asp:Repeater>
        
	        <tr align="center" style="display:<%=MsgListCount==0?"block":"none"%>">
	            <td rowspan="6" align="center">
	                暂无帖子
	            </td>
	        </tr>

        </table>
        </div>


        <div align="center">
	        <table cellpadding="0" cellspacing="0" width="97%" style="border: 1px solid #DFDFDF">
		        <tr>
			        <td height="32">
			            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                        CurrentPageButtonPosition="Beginning" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                        LayoutType="Table" NumericButtonTextFormatString="[{0}]" PageIndexBoxType="DropDownList"
                        PageSize="15" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                        TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" FirstPageText="首页" 
                        LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"></webdiyer:AspNetPager>   
			        </td>

		        </tr>
	        </table>
        </div>	
</asp:Panel>

<asp:Panel ID="palBBsDetail" runat="server" Visible="true" >
    <div align="center">
	        <table cellpadding="0" cellspacing="0" width="97%" height="20">
		        <tr>
			        <td width="800" height="20" align="left">
			            <a href="PublishBBS.aspx?AncestralHallId=<%=this.AncestralHallId %>&AncestralHallItemId=<%=this.AncestralHallItemId%>"><img style="border:0px" src="1/zi_postnew.gif" /></a>&nbsp;&nbsp;&nbsp;<a href="BBSIndex.aspx?AncestralHallId=<%=this.AncestralHallId %>&AncestralHallItemId=<%=this.AncestralHallItemId%>&accessType=2&BBSMsgId=<%=this.BBSMsgId%>"><img style="border:0px"  src="1/zi_mreply.gif" /></a>
			        </td>
		        </tr>
	        </table>
        </div>
        <div align="center">

        <table cellpadding="0" cellspacing="0" width="97%" height="276" style="border: 1px solid #DFDFDF">
	        <!-- MSTableType="nolayout" -->
	        <tr>
		        <td class="BG" height="26" colspan="2"   style="border: 1px solid #DFDFDF">
        		
        		
        		
	            &nbsp;<%=msgModel.Title%><span  style="font-size:12px;font-weight:100">(发布人:<%=userName%>)</span></td>
	        </tr>
	        <tr>
		        <td height="215" style="border: 1px solid #DFDFDF"><div style="padding:5px; word-break:break-all">
		        &nbsp;<span style="font-size: 12px"><DIV>
        <DIV>
        <DIV align=center>
        <TABLE cellSpacing=0 cellPadding=0 width=770 border=0>
        <TBODY>
        <TR>
        <TD width=50>
        <DIV align=left>&nbsp;</DIV></TD>
        <TD vAlign=top>
        <DIV align=center>
        <TABLE cellSpacing=0 cellPadding=0 width=670 border=0>
        <TBODY>
        <TR>
        <TD colSpan=3>
        <DIV align=center><B><%=msgModel.Title%></B></DIV></TD>
        <TD width=252 rowSpan=2>
        <DIV align=center>
            <A href="http://www.enorth.com.cn/art/jgyy/jmys/images/lhz/huizhang1-d.jpg" target=_blank></A></DIV>
        <DIV align=center>&nbsp;</DIV></TD></TR>
        <TR>
        <TD width=15>
        <DIV align=left>&nbsp;</DIV></TD>
        <TD align="left" vAlign="top" width=485>
        <%=msgModel.Content%></TD>
        <TD width=18>
        <DIV align=left>&nbsp;</DIV></TD></TR>
        <TR>
        <TD colSpan=4>
        <DIV align=center>
            <A href="http://www.enorth.com.cn/art/jgyy/jmys/images/lhz/lhz-2-d.jpg" target=_blank></A>　　　　　　　　　　　　<A href="http://www.enorth.com.cn/art/jgyy/jmys/images/lhz/lhz-1-d.jpg" target=_blank> </A></DIV></TD></TR>
        <TR height=0>
        <TD width=13></TD>
        <TD width=405></TD>
        <TD width=16></TD>
        <TD width=236></TD></TR></TBODY></TABLE></DIV>
        <DIV align=center></DIV></TD>
        <TD width=50>
        <DIV align=left>&nbsp;</DIV></TD></TR></TBODY></TABLE></DIV></DIV></DIV></span></div></td>
	        </tr>
	        <tr>
		        <td height="33" width="613" style="border: 1px solid #DFDFDF" align="left">

	            &nbsp;
        <!--		<img border="0" src="imges/sikin/1/1_edit[1].gif" width="34" height="17">&nbsp;
		        <img border="0" src="imges/sikin/1/1_del[1].gif" width="34" height="17">&nbsp;&nbsp;-->
		        <img border="0" src="1/posttime[1].gif" width="16" height="15"><span style="font-size: 12px">发表时间:<%=msgModel.PublishTime%></span></td>
	        </tr>
        </table>
        </div>
        <link  rel="stylesheet" href="imges/sikin/2/css.css" type="text/css">
        <body class="BJ">



        <div align="center">
        <table cellpadding="0" cellspacing="0" width="97%" height="215" style="border: 1px solid #DFDFDF">
        <!-- MSTableType="nolayout" -->
        	
        </table>
        </div>


        <div align="center">
	        <table cellpadding="0" cellspacing="0" width="97%" height="274" style="border: 1px solid #DFDFDF">
		        <tr>
			        <td class="BG" width="799" height="26" colspan="2">
        			
			        &nbsp;<b>快速回帖</b></td>
		        </tr>
		        <tr>
			        <td width="181" height="221" style="border: 0px solid #DFDFDF">
        			
			　        </td>
			        <td width="616" height="221" style="border: 1px solid #DFDFDF">
        			<asp:TextBox TextMode="MultiLine" ID="txtContent"  runat="server" Height="95px" 
                            Width="470px"/>
			        &nbsp;<asp:Button ID="btnSubmit" runat="server" Text="提 交"  
                            style="color: #000000; border: 3px double #DFDFDF" onclick="btnSubmit_Click" />
	
			        </td>

		        </tr>
		        <tr>
			        <td class="BG" width="799" height="27" colspan="2">
        			
			　        </td>
		        </tr>
	        </table>
        </div>
    </asp:Panel>


<div align="center">
<table cellpadding="0" cellspacing="0" width="97%">
	<tr>
		<td height="143">		
		<%=ancestralHallBBSModel.BBSBottom%>	
	    </td>
	</tr>
</table>
</div>
</form>
</body>
</html>
